// api.js
import request from '../request';
// 登录
export const getEquipmentDetails = (params) => {
  return request({
    url: '/vilion/device/details',
    method: 'GET',
    data: params
  });
};

// 功率分析

export const getEquipmentPowerAnalysis = (params) => {
  return request({
    url: '/vilion/device/powerAnalysis',
    method: 'GET',
    data: params
  });
};

// 充放分析

export const getEquipmentChargeAnalysis = (params) => {
  return request({
    url: '/vilion/device/chargeAnalysis',
    method: 'GET',
    data: params
  });
};



// 模块数量


export const getEquipmentqueryDeviceModuleNumber = (params) => {
  return request({
    url: '/vilion/device/queryDeviceModuleNumber',
    method: 'GET',
    data: params
  });
};



// BMs 汇总
export const getBmsSummary = (params) => {
  return request({
    url: '/vilion/device/queryBmsTotalData',
    method: 'GET',
    data: params
  });
};


// dcdc
export const getDcdcSummary = (params) => {
  return request({
    url: '/vilion/device/queryDcdcTotalData',
    method: 'GET',
    data: params
  });
};



// mppt
export const getMpptSummary = (params) => {
  return request({
    url: '/vilion/device/queryMpptTotalData',
    method: 'GET',
    data: params
  });
};



// pcs
export const getPcsSummary = (params) => {
  return request({
    url: '/vilion/device/queryPcsTotalData',
    method: 'GET',
    data: params
  });
};
